package com.liqi.step.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.liqi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author: lgh
 * @Date: 2022-12-15
 * @Description: 
 */
/**
    * 基本步骤表
    */
@ApiModel(value="com-liqi-step-domain-TCfgBaseStep")
@Data
@TableName(value = "t_cfg_base_step")
public class TCfgBaseStep {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="主键")
    @Excel(name = "id")
    private Integer id;

    /**
     * 类型：1办理类步骤，2查询类步骤
     */
    @TableField(value = "type")
    @ApiModelProperty(value="类型：1办理类步骤，2查询类步骤",required = true)
    @NotNull(message = "类型不能为空")
    @Excel(name = "类型",readConverterExp = "1=办理类,2=查询类")
    private Integer type;

    /**
     * 步骤名称
     */
    @TableField(value = "step_name")
    @ApiModelProperty(value="步骤名称",required = true)
    @NotBlank(message = "步骤名称不能为空")
    @Excel(name = "步骤名称")
    private String stepName;

    /**
     * 步骤组件名称
     */
    @TableField(value = "component_name")
    @ApiModelProperty(value="步骤组件名称",required = true)
    @NotBlank(message = "组件名称不能为空")
    @Excel(name = "组件名称")
    private String componentName;

    /**
     * 步骤排序号
     */
    @TableField(value = "sort")
    @ApiModelProperty(value="步骤排序号",required = true)
    @NotNull(message = "排序不能为空")
    @Excel(name = "步骤排序号")
    private Integer sort;

    /**
     * 状态：0正常，1软删除
     */
    @TableField(value = "status")
    @ApiModelProperty(value="状态：0正常，1软删除")
    @Excel(name = "状态",readConverterExp = "0=正常")
    private Integer status;

    /**
     * 创建者
     */
    @TableField(value = "create_by")
    @ApiModelProperty(value="创建者")
    @Excel(name = "创建人")
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value="创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新者
     */
    @TableField(value = "update_by")
    @ApiModelProperty(value="更新者")
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @ApiModelProperty(value="更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * 备注
     */
    @TableField(value = "remark")
    @ApiModelProperty(value="备注")
    @Excel(name = "备注")
    private String remark;
}